﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Coco.Infrastructure;
using Coco.Models;

namespace Coco.ViewModel
{
    public class ViewModelBase : NotificationObject
    {
        public IDataContext Database;

        public ViewModelBase()
        {
            Database = new IDataContext(ConstStrings.Connection);
        }

        public virtual void SaveChanges()
        {
            Database.SubmitChanges();
        }
    }
}
